//
//  HKCollectionAdapter.h
//  KSBridgeDesign
//
//  Created by huzhaoke on 2021/6/3.
//

#import "HKListAdapter.h"

NS_ASSUME_NONNULL_BEGIN

@interface HKCollectionAdapter : HKListAdapter <UICollectionViewDelegateFlowLayout>

@property (nonatomic, weak, readonly) UICollectionView *collectionView;

- (instancetype)initWithCollectionView:(UICollectionView *)collectionView;

- (void)performBatchUpdates:(void (NS_NOESCAPE ^)(HKCollectionAdapter *adapter))updates
                   animated:(BOOL)animated
                 completion:(void (^ _Nullable)(BOOL finished))completion;

@end

NS_ASSUME_NONNULL_END
